{extends file='layout/main.html'}
{block name="main"}

<div class="main_title">
	<h2>菜单名称</h2>
</div>

<div class="btn_blk clearfix">
	<h1 class="fl large light_gray">
		{foreach array_reverse(get_curm_menu($smarty.get.id)) as $val}
			{if $val@last}
				<a href="?url=category&id={$val}">{get_info('category',$val,'title')}</a>
			{else}
				<a href="?url=category&id={$val}">{get_info('category',$val,'title')}</a> > 
			{/if}
		{/foreach}
		</h1>
	<div class="fr">
		{if get_category_type($smarty.get.id)}
		<a href="?url=category/create&id={$smarty.get.id}" class="btn1 fr">新增专辑</a>
		{/if}
	</div>
</div>

<ul class="album_list clearfix">
	{foreach $data as $val}
	<li>
		<div class="photo_ttl">{$val.title}</div>
		<a href="?url=category&id={$val.id}">
			{if $val.img}
			<img src="/Services/images/cropped_165_184/attachments{$val.img}" height="184" width="165" alt="" />
			{else}
			<img src="{gen_theme_url('images/no_img.jpg')}" height="184" width="165" alt="" />
			{/if}
		</a>
		<p class="tac lh30"><a href="?url=category/update&id={$val.id}">编辑</a> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="?url=category/delete&id={$val.id}" class="delete">删除</a></p>
	</li>
	{/foreach}
</ul>

{/block}
